package com.zeroone.star.publish.config;

import com.zeroone.star.project.config.swagger.SwaggerCore;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;

/**
 * @author ZhangJF
 * @date 2024/01/19 17:25
 **/
@Configuration
@EnableSwagger2WebMvc
public class SwaggerConfig {
//    后端 API 接口文档 Swagger
    @Bean
    Docket sampleApis(){
        return SwaggerCore.defaultDocketBuilder("系统配置模块",
                "com.zeroone.star.publish.controller",
                "Volunteer");
    }
}
